#ifndef _WIFI_H_
#define _WIFI_H_
#include "stm32f1xx_hal.h"

#define WIFI_User 				"TEST"
#define WIFI_Pass   			"0123456789"
#define ESP8266_UserName 		"stm32_mqtt&k1jdc57FQGm"//设置连接阿里云的UserName
#define ESP8266_PassWord		"67b28ee06b5647c9ec06d1d2e194653249aa1fca95ce2c987930fd1aaa674bbe"//设置连接阿里云的PassWord
#define ESP8266_ClientID		"k1jdc57FQGm.stm32_mqtt|securemode=2\\,signmethod=hmacsha256\\,timestamp=1720363055393|"//设置连接阿里云的ClientID，注意,需要添加转义字符，=> \\,
#define ESP8266_Domain_Name		"iot-06z00b84zvuu961.mqtt.iothub.aliyuncs.com"//设置连接阿里云的Domain_Name
#define ESP8266_Port 			1883												 //设置连接阿里云的端口号
#define ESP8266_Reconnect		1                    //设置是否自动重连   0：不自动重连   1：自动重连
#define ESP8266_Post_re			"/sys/k1jdc57FQGm/stm32_mqtt/thing/event/property/post_reply"//订阅阿里云的Topic
#define ESP8266_Post			"/sys/k1jdc57FQGm/stm32_mqtt/thing/event/property/post"//订阅阿里云的Topic


#define  ESP8266_SET          "/sys/k1jdc57FQGm/stm32_mqtt/thing/service/property/set"


extern uint8_t temperature;
extern uint8_t humidity;
extern uint8_t LED_Switch;
void wifi_init(void);
void create_Json(uint8_t temperature,uint8_t humidity);
void rcv_json(void);
#endif /* WIFI_WIFI_H_ */g